import request from '@/utils/request'

const base = '/product/oss'

export interface Policy {
    policy: string
    signature: string
    dir: string
    host: string
    x_oss_security_token: string
    x_oss_signature_version: string
    x_oss_credential: string
    x_oss_date: string
}

export function getPolicy(): Promise<Policy> {
    return request.get(`${base}/get_post_signature_for_oss_upload`)
}